package org.jeecg.modules.business.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 会议室预定档期表
 * </p>
 *
 * @author fendo
 * @since 2023-03-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bus_meeting_room_schedule_detail")
public class BusMeetingRoomScheduleDetail extends Model<BusMeetingRoomScheduleDetail> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private String id;

    /**
     * 关联租户
     */
    private String tenantId;

    /**
     * 关联酒店
     */
    private String hotelId;

    private String meetingRoomId;

    /**
     * 预定id
     */
    private String meetingRoomScheduleId;

    /**
     * 会议日期
     */
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDateTime meetingDate;

    /**
     * 会议时段  1 上午 2 中午 3下午
     */
    private Integer timeSpan;

    /**
     * 状态 0未确认 1 确认
     */
    private Integer status;


    public static final String ID = "id";

    public static final String TENANT_ID = "tenant_id";

    public static final String HOTEL_ID = "hotel_id";

    public static final  String MEETING_ROOM_ID = "meeting_room_id";
    public static final String MEETING_ROOM_SCHEDULE_ID = "meeting_room_schedule_id";

    public static final String MEETING_DATE = "meeting_date";

    public static final String TIME_SPAN = "time_span";

    public static final String STATUS = "status";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

    @TableField(exist = false)
    private String meetingRoomName;
    @TableField(exist = false)
    private String theme;
}
